//
//  CTPickImageCell.m
//  ConstellationTalk_0.1
//
//  Created by riley on 15/5/15.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import "CTPickImageCell.h"

#import "CTDebugManager.h"

@interface CTPickImageCell()
{
    UIImageView * imgView;
    UIImageView * pickedImgRemindLogo;
   
}

@end


@implementation CTPickImageCell

- (void)dealloc
{
    imgView = nil;
    pickedImgRemindLogo = nil;
   
    
    [CTDebugManager showDebugLogInfo:@"dealloc : CTPickImageCell Is Removed!!!"];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        imgView = [[UIImageView alloc] initWithFrame:self.bounds];
        [self addSubview:imgView];
        
        pickedImgRemindLogo = [[UIImageView alloc] initWithFrame:CGRectMake(0, self.bounds.size.width-25, 25, 25)];
        pickedImgRemindLogo.image = [UIImage imageNamed:@"face_like"];
        pickedImgRemindLogo.hidden = YES;
        [imgView addSubview:pickedImgRemindLogo];
        
    }
    return self;
}


#pragma mark - set -
-(void)setImage:(UIImage *)img
{
    imgView.image = img;
}
-(UIImage *)Img
{
    return imgView.image;
}

-(void)isImgPicked:(BOOL)isPicked
{
    if (isPicked == YES) {
        pickedImgRemindLogo.hidden = NO;
    }else{
        pickedImgRemindLogo.hidden = YES;
    }

}

@end
